#!/usr/bin/env python
# vi: et sw=2
#
# Gnome PulseAudio applet - Controller
# Copyright (C) 2009  Harry Karvonen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
#
# Author: Harry Karvonen <harry.karvonen@gmail.com>
#         Aki Rautio <aki.rautio@gmail.com>
#

import pygtk
pygtk.require('2.0')

import gtk , gobject


## Global values
APPLET_VERSION = '0.4'
APPLET_DIR = '/home/aki/Projektit/gnome-pulse-applet2'



## Import applet files
import dock


################################################################################
#
# PulseAppletController

class PulseAppletController:
  def __init__(self):
    
    ## Models

    self.pulseAudio   = None
    self.preferences  = None


    ## Views

    # self.tray = PulseAppletTray()
    self.dock = PulseAppletDock()
    
    # self.preferecesWindow = PulseAppletPreferences()
    

    ## Initializing Applet
    

    return

  ##############
  ## Methods

  ### Updating GUI

  def update_trayicon(self):
    tray = 1    
    return

  def update_dock(self):
    dock = 1
    return

  def update_streams(self):
    streams = 1    
    return

  ### Events

  def volume_changed(self,stream):
    volume_changed = 2
    return

  def change_volume(self,stream):
    volume = 0
    return

  def toggle_dock(self):
    dock = 0
    return

